package model;

/** 
 * 12-01-10
 * 
 * This holds all the information for an category.
 * 
 * @author Martijn Scholten & Timo Janssen
 */
public class CategoryDataModel {
	private int id;
	private String title;

	/**
	 * The AppointmentDataModel constructor.
	 * 
	 * @param newId The id of the category
	 * @param newTitle The title of the category
	 */
	public CategoryDataModel(int newId, String newTitle){
		id = newId;
		title = newTitle;
	}

	/**
	 * Return the id the ID of the Category.
	 * 
	 * @return id
	 */
	public int getId() {
		return id;
	}

	/**
	 * Return the title of the Category.
	 * @return String
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * For use of JComponents.
	 * @return The title of the category
	 */
	public String toString() {
		return title;
	}
}